Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep copy improvements #46

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Deep copy improvements #46

wants to merge 7 commits into from

Conversation

kMutagene
Copy link
Member

@kMutagene kMutagene commented Jan 3, 2025

This PR will

  • introduce more type safe deep copy capabilities for .NET:
    • ResizeArrays and Dictionaries containing any combination of basic F# types
    • Dictionaries containing DynamicObj as keys or values in any combination with DynamicObj or basic F# types as keys or values
  • Keep js/py results consistent

@kMutagene
Copy link
Member Author

@HLWeil

I would say this is ready for review. While i added ~300 tests in this PR, there are lots of test still to be added. However, to unblock downstream work i think this should be ready for at least a beta release, so let's get this merged and add more tests later

@kMutagene kMutagene marked this pull request as ready for review January 24, 2025 14:17
@kMutagene kMutagene requested a review from HLWeil January 24, 2025 14:18
@kMutagene kMutagene mentioned this pull request Jan 24, 2025
5 tasks
@kMutagene
Copy link
Member Author

for future reference, here is what is missing: #48

Copy link
Member

@HLWeil HLWeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's some commitment 💯

Is there any test case for a nested DynamicObj? If not, I think it would be a good mind-easer to have at least 3 very basic tests for this scenario:

  • DynamicObj with Single field (e.g. string) in the DynamicObj to be copied
  • DynamicObj with Single field (e.g. string) in ResizeArray in the DynamicObj to be copied
  • DynamicObj with Single field (e.g. string) in Dictionary in the DynamicObj to be copied

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the missing tests you referenced in #48?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants